const { DataTypes } = require('sequelize')

const seq = require('../db/seq')

const Menu = seq.define('menu', {
    id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
    menuName: DataTypes.STRING,
    path: DataTypes.STRING,
    icon: DataTypes.STRING,
    parentId: DataTypes.INTEGER,
    level: DataTypes.INTEGER,
}, {
    tableName: 'menu'
})

module.exports = Menu